package com.sf.fy.uav.order.controller;

import com.netflix.discovery.converters.Auto;
import com.sf.fy.uav.common.request.order.CityAirportAddRequest;
import com.sf.fy.uav.order.entity.CityAirport;
import com.sf.fy.uav.order.service.ICityAirportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-05-08
 */
@RestController
@RequestMapping("/sys/city-airport")
public class CityAirportRest {

    @Autowired
    private ICityAirportService iCityAirportService;

    public CityAirport add(CityAirportAddRequest cityAirportAddRequest) {
        return iCityAirportService.add(cityAirportAddRequest);
    }

    public CityAirport selectByConnId(String connId) {
        return iCityAirportService.selectByConnId(connId);
    }


    //废弃，现在改从tt_tes_terminal查询同步回来的数据
    public List<CityAirport> selectByConnIds(List<String> connIds) {
        return iCityAirportService.selectByConnIds(connIds);
    }

}
